package com.only4play.web.view;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author liyuncong
 * @version 1.0
 * @file SignController
 * @brief SignController
 * @details SignController
 * @date 2023-12-14
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2023-12-14               liyuncong          Created
 */
@Controller
@RequestMapping("/views")
public class SignController {

    @GetMapping(value = {"/", "/index"})
    public ModelAndView index() {
        ModelAndView view = new ModelAndView();
        view.setViewName("index");
        return view;
    }

    @GetMapping("/sign-in")
    public ModelAndView signIn() {
        ModelAndView view = new ModelAndView();
        view.setViewName("sign-in");
        return view;
    }
}
